package com.ray.pojo.attend;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class OvertimeRulePojo {
	private Integer id;
	private String ruleName;
	private Integer calcType;
	private Integer durationType;
	private Integer startTime;
	private Integer timeUnit;
	private String content;
	
	public String getContent() {
		Integer calcType = this.calcType;
		Integer durationType = this.durationType;
		if(calcType==1 && durationType==1) {
			content = "需审批，以审批单为准";
		}else if(calcType==1 && durationType==2) {
			content = "需审批，以打卡为准，但不能超过审批单时长";
		}else if(calcType==2 && durationType==2) {
			content = "无需审批，根据打卡时间计算加班时长";
		}else if(calcType==3) {
			content = "不允许加班";
		}
		return content;
	}
	
	
}
